/*
    Copyright j&g dev team(c). All Rights Reserved
    Notice: NONE
*/

#ifndef UNITMAN_H
#define UNITMAN_H

namespace GoldenAges
{
    class CUnitManager: public IBaseEntity
    {
    protected:
        vector<CUnit*> m_vpUnits;
        void AddUnit( CUnit* pUnit );

    public:
        CUnitManager();
        virtual ~CUnitManager();

        virtual void Think(const int& iElapsedTime);
        virtual void Render(SDL_Surface* pDestSurface);

        virtual bool LoadData(TiXmlElement* pXMLData);
        virtual TiXmlElement SaveData(void);

        CUnit* GetUnit(unsigned int iIndex);
    };
}

#endif // UNITMAN_H

